package com.extendsdemo2;

/**
 * @Auther: shiquan
 * @Date: 2024/10/20 - 10 - 20 -16:53
 */
public class Cook extends Employee {
    public Cook() {
    }

    public Cook(String id, String name, double salary) {
        super(id, name, salary);

    }


    @Override //特有的往上面写
    public void work(){
        System.out.println("厨师在炒菜");

    }
}
